package com.hzy.oms.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;

import java.io.Serializable;
import java.util.List;

/**
 * 订单售后视图对象 oms_aftersale
 *
 * @author zengxin
 * @date 2023-10-18
 */
@Data
@ExcelIgnoreUnannotated
public class AftersaleVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 会员id
     */
    @ExcelProperty(value = "会员id")
    private Long memberId;

    /**
     * 订单id
     */
    @ExcelProperty(value = "订单id")
    private Long orderId;

    /**
     * 退款金额
     */
    @ExcelProperty(value = "退款金额")
    private BigDecimal returnAmount;

    /**
     * 售后类型
     */
    @ExcelProperty(value = "售后类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "oms_aftersale_type")
    private Integer type;

    /**
     * 申请状态
     */
    @ExcelProperty(value = "申请状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "oms_aftersale_status")
    private Integer status;

    /**
     * 处理时间
     */
    @ExcelProperty(value = "处理时间")
    private Date handleTime;

    /**
     * 退货数量
     */
    @ExcelProperty(value = "退货数量")
    private Integer quantity;

    /**
     * 原因
     */
    @ExcelProperty(value = "原因")
    private String reason;

    /**
     * 描述
     */
    @ExcelProperty(value = "描述")
    private String description;

    /**
     * 凭证图片
     */
    @ExcelProperty(value = "凭证图片")
    private String proofPics;

    /**
     * 处理备注
     */
    @ExcelProperty(value = "处理备注")
    private String handleNote;

    /**
     * 处理人员
     */
    @ExcelProperty(value = "处理人员")
    private String handleMan;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private Long createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改人
     */
    @ExcelProperty(value = "修改人")
    private Long updateBy;

    /**
     * 修改时间
     */
    @ExcelProperty(value = "修改时间")
    private Date updateTime;

    /**
     * item
     */
    private List<AftersaleItemVo> aftersaleItemList;
    private List<OrderItemVo> orderItemList;
}
